<?php



namespace App\Models\Traits;

use Silber\Bouncer\Database\Scope\BaseTenantScope;
use Silber\Bouncer\Database\Models;

/**
 *
 * @author Administrator
 */
trait RoleTrait2 {
    
    protected static function bootRoleTrait2()
    {
        BaseTenantScope::register(static::class);

        static::creating(function ($role) {
            Models::scope()->applyToModel($role);
        });
    }
}
